<template>
  <div class="components-page-header-demo-responsive">
    <a-page-header style="border: 1px solid rgb(235, 237, 240)" title="详情"
                   sub-title="病人病历治疗情况" @back="() => $router.go(-1)">
      <template #extra>
        <a-button key="1" type="danger">警告</a-button>
        <a-button key="2" type="primary">打印</a-button>
      </template>
      <template #footer>
        <a-tabs v-model:activeKey="activeKey">
          <a-tab-pane key="1">
            <template #tab>
              <span>
                <BarChartOutlined/>
                详情
              </span>
            </template>
            <div style="width: 100%;height: 100%">


            </div>
          </a-tab-pane>
          <a-tab-pane key="2">
            <template #tab>
              <span>
                <FileSearchOutlined/>
                治疗
              </span>
            </template>
            Tab 2
          </a-tab-pane>
        </a-tabs>
      </template>
      <div class="content">
        <div class="main">
          <a-row>
            <a-col :span="6">
              <img src="../assets/avater.jpeg" alt="" style="width:100px;height:100px;border-radius:50%;margin:0 auto;">
            </a-col>
            <a-col :span="18">
              <a-descriptions size="small" :column="2">
                <a-descriptions-item label="病人姓名">
                  奇虎
                </a-descriptions-item>
                <a-descriptions-item label="身份证号码">
                  <a>130667195702056057</a>
                </a-descriptions-item>
                <a-descriptions-item label="收治时间">2020-01-10</a-descriptions-item>
                <a-descriptions-item label="病人保障情况">
                  <a-tag color="#87d068">医疗保险支付</a-tag>
                </a-descriptions-item>
                <a-descriptions-item label="病情">
                  <a-tag color="pink">肺水中</a-tag>
                  <a-tag color="red">肺部纤维化</a-tag>
                </a-descriptions-item>
              </a-descriptions>
            </a-col>
          </a-row>


        </div>
        <div class="extra">
          <div :style="{display: 'flex', width: 'max-content',justifyContent: 'flex-end', }">
            <a-statistic title="病人情况" value="极度病危" :style="{ marginRight: '32px',marginTop:'20px'}"></a-statistic>
            <a-statistic title="治疗费用" prefix="￥" :value="567778.08" :style="{ marginRight: '32px',marginTop:'20px'}"/>
          </div>
        </div>
      </div>
    </a-page-header>
  </div>
</template>
<script>
import {BarChartOutlined, FileSearchOutlined} from '@ant-design/icons-vue';
import {ref} from 'vue';

export default {
  name: 'test',
  setup() {
    return {
      activeKey: ref('1'),
    };
  },

  components: {
    BarChartOutlined,
    FileSearchOutlined
  },
}

</script>

<style>
.components-page-header-demo-responsive tr:last-child td {
  padding-bottom: 0;
}

#components-page-header-demo-responsive .content {
  display: flex;
}

#components-page-header-demo-responsive .ant-statistic-content {
  font-size: 20px;
  line-height: 28px;
}

@media (max-width: 576px) {
  #components-page-header-demo-responsive .content {
    display: block;
  }

  #components-page-header-demo-responsive .main {
    width: 100%;
    margin-bottom: 12px;
  }

  #components-page-header-demo-responsive .extra {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
}
</style>